$("#fileImport").click(function() {
    $("#files").click()
});
function fileImport() {
    var selectedFile = document.getElementById('files').files[0];
    var name = selectedFile.name;
    var size = selectedFile.size;
    document.getElementById('fileImport_text').value = name;
    var reader = new FileReader();
    reader.onload = function() {
        console.log(this.result)
    }
};
$('#submit_import').click(function() {
    var selectedFile = document.getElementById('files').files[0];
    var files = $("#files").val();
    $.ajax({
        url: Feng.ctxPath + "/recharge/uploadArrears",
        type: "post",
        data: {
            "file": files
        },
        success: function(data) {
            alert('成功!')
        },
        error: function(data) {
            alert('请稍后再试!')
        }
    })
});